package com.woniuxy.repay.controller;

import com.woniuxy.repay.annotation.MonitorLog;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shichen
 * @create 2021-11-25-9:37
 * @description
 */
@RestController
@RequestMapping("/exception")
public class ExceptionController {

    @MonitorLog("exception")
    @GetMapping("/happen")
    public void triggerException(){

        if (true){
           throw new RuntimeException("异常发生");
        }
    }
}
